using System.Collections.Generic;
using System.Linq;
using SKYPE4COMLib;
using System;
using System.Collections;

namespace SkypeStudio.Controls.Test
{
    public abstract class BaseCollectionMock<T>
    {
        private List<T> _List;

        public BaseCollectionMock()
        {
            _List = new List<T>();

        }
        public int Count
        {
            get { return _List.Count; }
        }

        public T this[int Index] { get { return _List[Index]; } }

        public void Add(T pItem) { _List.Add(pItem); }

        public IEnumerator GetEnumerator()
        {
            return _List.GetEnumerator();
        
        }

        public void Remove(int Index)
        {
             _List.RemoveAt(Index);

        }

        public void RemoveAll()
        {
             _List.RemoveAll(o => { return true; });

        }
    }
    public class ChatMessageCollectionMock : BaseCollectionMock<ChatMessage>, ChatMessageCollection
    {
      
    }
}
